package priv.lhy.entity;

import java.util.List;

/**
 * author : lihy
 * date : 2019/1/22 16:32
 */
public class Classes {
    private Teacher teacher;
    private List<Student> students;

    public Classes() {
    }

    public Classes(Teacher teacher, List<Student> students) {
        this.teacher = teacher;
        this.students = students;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "Classes{" + "teacher=" + teacher + ", students=" + students + '}';
    }
}
